package com.team5101.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 *  配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "rpc.provider")
@PropertySource(value = "classpath:rpc.properties", encoding = "utf-8", ignoreResourceNotFound = true)
public class RpcProperties {

	private String producerName;

	private String host;

	private int port;

}
